<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>快递公司</title>
    <%-- 静态包含 base标签、css样式、jQuery文件 --%>
    <%@ include file="/page/common/header.jsp"%>

</head>
<body>
        <div id="container">
            <div id="table">

                <table class="right">
                    <thead>
                    <tr>
                        <th>宠物ID</th>
                        <th>订单ID</th>
                        <th>宠物状态</th>
                        <th>宠物名称</th>
                        <th>宠物描述</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <c:forEach items="${requestScope.pets}" var="pets">
                        <tr>
                            <td>${pets.id}</td>
                            <td>${pets.orderid}</td>
                            <td>${pets.state}</td>
                            <td>${pets.name}</td>
                            <td>${pets.description}</td>
                            <td><a href="client/petServlet?action=getPet&id=${pets.id}">修改   </a>
                                <a class="deleteClass" href="client/petServlet?action=delete&id=${pets.id}">   删除</a></td>
                        </tr>
                    </c:forEach>
                    </tbody>

                    <tr>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td><a href="page/edit/pet_edit.jsp">添加宠物</a></td>
                    </tr>

                </table>
            </div>

        </div>
        <%--静态包含页脚内容--%>
        <%@include file="/page/common/footer.jsp"%>





</body>
</html>
